<include file="./Application/Admin/View/default/Public/front.html"/>
<style>
    .xinzeng {
        float: left;
        margin: 0 10px;
    }

    .topic {
        width: 100%;
        height: 40px;
        line-height: 40px;
        font-size: 20px;
        font-family: Arial;
        text-align: center;
        background: #e6e6e6;
        color: #666;
    }
    .layui-body{overflow-y: scroll;}
</style>
<div class="layui-body">
    <!-- 内容主体区域 -->
    <div class="topic">系统日志</div>
    <div id="classlistBody" style="padding-top: 10px;">
        <table id="Log" lay-filter="Log"></table>
    </div>
</div>

<include file="./Application/Admin/View/default/Public/behind.html"/>

<script>
    var util;
    layui.use(['table', 'layer','jquery','util'], function () {
        var table = layui.table;
        var $ = layui.jquery;
        util = layui.util;
        
        table.render({
            elem: '#Log'
            , url: '{:U("Log/index")}' //数据接口
            , method: 'post'
            , page: true //开启分页
            , limit: 10
            , cols: [[ //表头
//                {type: 'checkbox', fixed: 'left'},
                {field: 'teacher_id', title: '用户ID', width: "15%"},
                {field: 'teacher_name', title: '用户名', width: "15%"},
                {field: 'op_log', title: '操作', width: "15%"},
                {field: 'op_time', title: '时间',templet: '#timeTpl', width: "15%"},
            ]]
        });

    });
    function time2date(t){
    var t1 = parseInt(t + '000');
    
    return util.toDateString(t1);
}

</script>

<script type="text/html" id="timeTpl">
    {{ time2date(d.op_time) }}
</script>


